<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ajax</title>
    <script src="https://code.jquery.com/jquery-3.7.0.min.js"></script>
</head>
<body>
    <script>
        jQuery.ajax({
            url: "https://www.sogou.com",
            type: "get",//可以写做 post, put, delete 等等，写成大写的也行
            data: "这是 body",
            contentType: "text/plain",
            success: function(body) {
                //写处理响应的代码
                console.log(body);
            }
        })
    </script>
</body>
</html>